//
//  NSString+Tools.h
//  VR
//
//  Created by hxp on 16/3/13.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (Tools)

/**
 *  判断字符串里是否含有表情
 */
+ (BOOL)stringContainsEmoji:(NSString *)string;

- (CGSize)sizewithFont:(UIFont *)font maxSize:(CGSize)size;
- (CGSize)sizeWithFont:(UIFont *)font;

+(NSMutableAttributedString *)titleStr:(NSString *)title content:(NSString *)content font:(UIFont *)font;

/**
 *  判断手机号是否合法
 */
+ (NSString *)valiMobile:(NSString *)mobile;

- (NSString*)areaCodeFormat;
/** 汉字的拼音 */
- (NSString *)pinyin;

+(NSMutableAttributedString *)content:(NSString *)title name:(NSString *)name;
+(NSString *)payState:(NSString *)state;
+(NSString *)dateString:(NSString *)time;
+(NSString *)timeString:(NSString *)time;
+(NSString *)ageStr:(NSString *)birthday;

@end
